
import Storage from './localStorage';
interface IsetStorage {
    name: string, //名称
    value: string, //值
    expires?: number, // 过期时间
}
let storage = new Storage();
export const getStorage: (key: string) => any = (key: string) => {
    return storage.getItem(key)
}

export const setStorage: (params: IsetStorage) => void = (params: IsetStorage) => {
    storage.setItem(params)
}

export const removeStorage: (Key: string) => void = (Key: string) => {
    storage.removeItem(Key)
}